home *** CD-ROM | disk | FTP | other *** search
/ 202 Game Collection / 202 Game Collection.iso / Ultimate / games / Braid.dxr / 00059_normals.ls < prev    next >
Encoding:
Text File  |  2001-10-16  |  571 b   |  23 lines

  1. property spriteNum
  2. global orig, currentcard
  3.  
  4. on beginSprite me
  5.   sprite(spriteNum).visible = 0
  6. end
  7.  
  8. on mouseDown me
  9.   if sprite(spriteNum).visible and (currentcard = 0) then
  10.     orig = spriteNum
  11.     currentcard = 60
  12.     puppetSound("pickcard")
  13.     sprite(currentcard).visible = 1
  14.     sprite(currentcard).memberNum = sprite(spriteNum).memberNum
  15.     sprite(currentcard).loc = sprite(spriteNum).loc
  16.     sprite(spriteNum).visible = 0
  17.     repeat while the mouseDown
  18.       sprite(currentcard).loc = point(the mouseH, the mouseV)
  19.       updateStage()
  20.     end repeat
  21.   end if
  22. end
  23.